//
//  tklTools.h
//  wanyibeta
//
//  Created by wxt on 2019/1/28.
//  Copyright © 2019 wxt. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TKLTools : NSObject


+(NSDictionary *)deleNUllDic:(id)dic;
//解析网络上的数据
+(NSDictionary *)getDicFromResponse:(id)response;
//从字典里面去一个安全的key值
+(id)getValueFromDic:(NSDictionary *)dic withKey:(NSString *)key;
//相隔多少天
+(NSDateComponents *)compntDate:(NSString *)staDateStr withDate:(NSString*)endDateStr;
//获悉现在时间
+(NSString *)getNomeTime;
//获悉现在时间戳
+(NSString *)getNomeTimeData;
//异或加密
+ (NSString *)encryptPassword:(NSString *)password key:(NSString *)key;
+ (NSString *)arrayToJSONString:(NSArray *)array;

//+(NSString *)RSAEncoderWithString:(NSString *)string;
+ (BOOL)stringContainsEmoji:(NSString *)string;
//字典转字符串
+ (NSString *)conversionDictionary:(NSDictionary *)dic;
//字符串转字典
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+(BOOL)isMobileNumber:(NSString *)mobileNum;
+(BOOL)isPassWord:(NSString * )passWord;
//计算距离
+ (float)getDistance:(float)lat1 lng1:(float)lng1 lat2:(float)lat2 lng2:(float)lng2;
+(NSString *)toRoman:(int)num;
+(NSString *)getMMSSFromSS:(NSString *)totalTime;
//颜色

+(NSString *)obfuscate:(NSString *)string withKey:(NSString *)key;

//jwttoken解析
+ (id)jwtDecodeWithJwtString:(NSString *)jwtStr;

//首字母大写
+(NSString *)strFirstBig:(NSString*)str;

@end


NS_ASSUME_NONNULL_END
